Telegram Group & Telegram Channel
Python dasturlash maktabi
⭕️ 2-bo'lim “Operatorlar” ————————————— Ⓜ️Operatorlar guruhlari? ----------------------------- Pythonda operatorlar quyidagi guruhga bo'linadi. Arifmetik operatorlar Tayinlash operatorlari Taqqoslash operatorlari Mantiqiy operatorlar Identifikatsiya operatorlari…
Ⓜ️ A'zolik operatorlari
A'zolik operatorlari ob'ektda ketma-ketlik mavjudligini tekshirish uchun ishlatiladi:

satr =  'salom dunyo 22'
list = ['salom dunyo', 'hello world', 22, '33']

in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('salom' in satr) True
print('salom' in list) False
print('salom dunyo' in list) True
print(22 in satr) Error
print(33 in list) False

not in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('hello' not in satr) True
print('salom' not in list) True
print('salom dunyo' not in list) False
print(22 not in list) False

@pythonuz



tg-me.com/pythonuz/307
Create:
Last Update:

Ⓜ️ A'zolik operatorlari
A'zolik operatorlari ob'ektda ketma-ketlik mavjudligini tekshirish uchun ishlatiladi:

satr =  'salom dunyo 22'
list = ['salom dunyo', 'hello world', 22, '33']

in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topsa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('salom' in satr) True
print('salom' in list) False
print('salom dunyo' in list) True
print(22 in satr) Error
print(33 in list) False

not in Ob'ektda belgilangan ketma-ketlikda o'zgaruvchini topmasa rost (True) qaytaradi, boshqa holatda yolg'on (False) qaytaradi.

print('hello' not in satr) True
print('salom' not in list) True
print('salom dunyo' not in list) False
print(22 not in list) False

@pythonuz

BY Python dasturlash maktabi


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonuz/307

View MORE
Open in Telegram


Python dasturlash maktabi Telegram | DID YOU KNOW?

Date: |

How to Buy Bitcoin?

Most people buy Bitcoin via exchanges, such as Coinbase. Exchanges allow you to buy, sell and hold cryptocurrency, and setting up an account is similar to opening a brokerage account—you’ll need to verify your identity and provide some kind of funding source, such as a bank account or debit card. Major exchanges include Coinbase, Kraken, and Gemini. You can also buy Bitcoin at a broker like Robinhood. Regardless of where you buy your Bitcoin, you’ll need a digital wallet in which to store it. This might be what’s called a hot wallet or a cold wallet. A hot wallet (also called an online wallet) is stored by an exchange or a provider in the cloud. Providers of online wallets include Exodus, Electrum and Mycelium. A cold wallet (or mobile wallet) is an offline device used to store Bitcoin and is not connected to the Internet. Some mobile wallet options include Trezor and Ledger.

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. “While doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

Python dasturlash maktabi from tw


Telegram Python dasturlash maktabi
FROM USA